<? 
	ob_start(); 
	require("admin/connect.php");
	$tieude=$_POST["tieude"];
	$noidung=$_POST["noidung"];
	$ngay=date("Y-m-d-h-m-s");
	$nguoidang=$_POST["nguoidang"];
	$mal=$_POST["lopid"];
	$malbv=$_POST["chuyenmuc"];						
	$sql="insert into baiviet(tieude,noidung,ngay,nguoidang,mal,malbv) values('{$tieude}','{$noidung}','{$ngay}','{$nguoidang}','{$mal}','{$malbv}')";	
	mysql_query("$sql") or die("Error!");
	mysql_close();
	header("Location:lopcuatoi_baiviet.php?mal=$mal");											
?>